#!/bin/bash
# 第四题
sort a.txt > aa.txt
sort b.txt > bb.txt
# 交
comm aa.txt bb.txt -12 > intersection.txt
# 差 a-b
comm aa.txt bb.txt -23 > diff.txt
# 并
sort a.txt b.txt | uniq > union.txt